package com.zhangliuliu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("user")
public class UserBean {
    /**
     * 用户实体
     */
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private  int  userId;
    @TableField(value = "user_name")
    private String userName;
    @TableField(value = "user_pwd")
    private String userPwd;
    @TableField(value = "user_power")
    private String userPower;
    @TableField(value = "user_realName")
    private  String userRealName;

    public UserBean() {
    }


    public UserBean(String userName, String userPwd, String userPower, String userRealName) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userPower = userPower;
        this.userRealName = userRealName;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserPower() {
        return userPower;
    }

    public void setUserPower(String userPower) {
        this.userPower = userPower;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", userPower='" + userPower + '\'' +
                ", userRealName='" + userRealName + '\'' +
                '}';
    }
}
